package com.example.travel.service;

import com.example.travel.entity.Leave;
import com.example.travel.entity.User;
import com.example.travel.entity.Write;
import com.example.travel.entity.bo.WriteBO;
import com.example.travel.entity.dto.WriteDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IUserService {


    String updateInformation(User user);

    boolean insertWrite(Write write);

    PageInfo<WriteBO> selectWrite(WriteDTO writeDTO);

    WriteBO selectWriteParticulars(WriteDTO writeDTO);

    boolean insertLeave(Leave leave);

    List<Leave> selectLeave();


    boolean updateWrite(WriteDTO writeDTO);

    boolean delWrite(WriteDTO writeDTO);
}
